'use strict';
const {Database} = require('../../project.config');

module.exports = async app => {
  app.beforeStart(async () => {
    if (Database.isSync) {
      await app.model.sync({
        alter: true,
        force: false,
      });
    }
  });
};
